/*
 * CAppStateWin.h
 *
 *  Created on: 07/02/2013
 *
 */

#ifndef CAPPSTATEEND_H_
#define CAPPSTATEEND_H_
#include "CAppState.h"
#include "util.h"
#include "CNet.h"
#include "DataLoader.h"

class CAppStateEnd : public CAppState{
private:
		static CAppStateEnd instance;
		SDL_Surface* surface;
		SDL_Surface* gamemsg;
		SDL_Surface* playAgainButton;
		DataLoader* data;
		CNetMessage msg;
		bool playAgain;
		CAppStateEnd();

	public:
		void onLButtonDown(int mX, int mY);

	public:
		void onActivate();

		void onDeactivate();

		void onLoop();

		void onRender(SDL_Surface* surf_Display);

		void setData(DataLoader* data){this->data = data;};

		static CAppStateEnd* getInstance();
};

#endif /* CAPPSTATEEND_H_ */
